//
//  DataBaseSaveEditeImageModel.h
//  WuliHanhan
//
//  Created by tang on 16/3/16.
//  Copyright © 2016年 LVpeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Header.h"



typedef void(^getDataModel)(NSArray *namearray, NSArray *imageDataArray);




@interface DataBaseSaveEditeImageModel : NSObject


SINGLETON_INTERFACE(DataBaseSaveEditeImageModel);









//打开数据库
- (void)openDataBase;


//关闭shujuku
- (void)closeDataBase;


//插入数据
- (void)insertImage:(NSData *)data withIndex:(NSString *)indexString;

//删除
- (void)deletaIMage:(NSString *)indesString;

//获取相册数据库的照片
- (void)rearDataBaseForPhotos:(getDataModel)callBack;




//拍照结束添加图片index加1
- (void)updateDataBaseWithIndex;


@end
